package com.mdinfo.gw.door.service

import com.mdinfo.base.common.bean.CommonResult
import com.mdinfo.base.common.bean.DataGrid
import com.mdinfo.gw.door.param.*
import com.mdinfo.gw.door.vo.DoorAccessListByDeptVo
import com.mdinfo.gw.door.vo.DoorAccessListQueryVo

/**
 * Created by Administrator on 2018/1/9.
 */
interface IDoorAccessService {
    /**添加门禁*/
    fun add(param: DoorAccessAddParam): CommonResult<Void>

    /**列表查询*/
    fun listQuery(param: DoorAccessListQueryParam)
            : CommonResult<DataGrid<DoorAccessListQueryVo>>

    /**修改门禁*/
    fun  modify(param: DoorAccessModifyParam): CommonResult<Void>

    /**删除门禁*/
    fun toDel(param: DoorAccessToDelParam): CommonResult<Void>

    /**本部门下的门禁控制器*/
    fun listByDept(param: DoorAccessListByDeptParam)
            : CommonResult<List<DoorAccessListByDeptVo>>
}